home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / SpriteEngine / SE Balls / SpriteHandlers.h < prev   
Text File  |  1995-03-10  |  801b  |  27 lines

  1. /* Application-dependent definitions */
  2.  
  3. /* All the possible kinds of game entities */
  4. /* Add new types as necessary */
  5. //typedef enum {playerEntity, enemyEntity, goldEntity} EntityType;
  6.  
  7.  
  8. /* Data structure describing a sprite*/
  9. /* Add new fields as necessary */
  10.  
  11. /**/
  12.  
  13. typedef struct SpriteRecord {
  14. /*Game entity data - edit as desired*/
  15.     Point            speed;                /* Fixed-point! */
  16.     Point            fixedPointPosition;    /* Fixed-point! */
  17. /*Sprite data - don't remove*/
  18.     Point            position;            /* Integer screen coordinates! */
  19.     GrafPtr            face;                /* Apprearance of the sprite */
  20.     Rect            drawingRect;        /* Where is it? */
  21. /*List pointers - don't remove*/
  22.     struct SpriteRecord    *prev, *next;        /* Next enity in the list */
  23. } SpriteRecord;
  24.  
  25. // Decomment this if fixedPointPosition is declared below!
  26. #define    _hasfixedpoint
  27.